gridpack::parser::GenclsParser< _data_struct > Class Template Reference

#include <gencls.hpp>

List of all members.

Public Member Functions

 GenclsParser ()
virtual ~GenclsParser ()
void extract (_data_struct &data_struct, gridpack::component::DataCollection *data, int g_id)
void parse (std::vector< std::string > &split_line, gridpack::component::DataCollection *data, int g_id)
void store (std::vector< std::string > &split_line, _data_struct &data)

template<class _data_struct>
class gridpack::parser::GenclsParser< _data_struct >


Constructor & Destructor Documentation

template<class _data_struct >
gridpack::parser::GenclsParser< _data_struct >::GenclsParser (  )  [explicit]

Constructor

template<class _data_struct >
virtual gridpack::parser::GenclsParser< _data_struct >::~GenclsParser (  )  [virtual]

Destructor


Member Function Documentation

template<class _data_struct >
void gridpack::parser::GenclsParser< _data_struct >::extract ( _data_struct &  data_struct,
gridpack::component::DataCollection data,
int  g_id 
)

Extract data from _data_struct and store it in data collection object

Parameters:
data_struct data struct object
data data collection object
gen_id index of generator

References gridpack::component::DataCollection::addValue(), GENERATOR_DAMPING_COEFFICIENT_0, GENERATOR_INERTIA_CONSTANT_H, GENERATOR_MODEL, GENERATOR_TRANSIENT_REACTANCE, gridpack::component::DataCollection::getValue(), and gridpack::component::DataCollection::setValue().

template<class _data_struct >
void gridpack::parser::GenclsParser< _data_struct >::parse ( std::vector< std::string > &  split_line,
gridpack::component::DataCollection data,
int  g_id 
)
template<class _data_struct >
void gridpack::parser::GenclsParser< _data_struct >::store ( std::vector< std::string > &  split_line,
_data_struct &  data 
)

Parse list of strings store results in data_struct object

Parameters:
split_line list of tokens from .dyr file
data data struct that stores information from file

References gridpack::utility::StringUtils::clean2Char(), gridpack::utility::StringUtils::toUpper(), and gridpack::utility::StringUtils::trimQuotes().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Feb 2020 for GridPACK by  doxygen 1.6.1